home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / abiword-help / html / howto / howtoweb.html < prev    next >
Encoding:
Extensible Markup Language  |  2009-02-18  |  15.9 KB  |  137 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml/DTD/xhtml1-strict.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <!-- 
  7. Copyright 2002 John Clark Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts A copy of the license is included in the section entitled "GNU Free Documentation License"
  8. //-->
  9. <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  10. <title>How To make Web-Clean Documents in AbiWord</title>
  11. <link href="../style.css" rel="stylesheet" type="text/css" />
  12.  
  13. </head>
  14. <body>
  15.  
  16. <div class="banner">
  17. <a href="../index.html" class="bars">Home</a> > <a href="index.html" class="bars">How To</a> > Web Documents 
  18. </div>
  19.  
  20. <div class="main">
  21.  
  22.  
  23.    <h1><span xml:lang="en-US" lang="en-US">Tips and Tricks for Authoring Web-Clean AbiWord Documents</span></h1>
  24.    <h2><a name="introduction" id="introduction"><span xml:lang="en-US" lang="en-US">Introduction</span></a></h2>
  25.    <p><span xml:lang="en-US" lang="en-US">When writing a document, many authors want to be able to present that document in a variety of media and formats.  AbiWord has a variety of file formats available for your use.</span></p>
  26.    <p><span xml:lang="en-US" lang="en-US">Often, a particular file format is naturally associated with a particular type of media.  For example, HTML is naturally associated with presentation on the World Wide Web.  If you are interested in presenting your document in a variety of media, there are issues of presentation which you should keep in mind.  This tutorial discusses how to create "Web-Clean" AbiWord documents.  A "Web-Clean" document is a document which will accurately be represented in HTML and which will be easy for you to modify for integration into your web-site.</span></p>
  27.    <h2><a name="structure" id="structure"><span xml:lang="en-US" lang="en-US">Word Processing versus Content Authoring</span></a></h2>
  28.    <p><span xml:lang="en-US" lang="en-US">When creating any document, there are two different approaches that an author can take.  The first is a concentration on presentation, where the author manually edits the visual details of his or her document until happy with the way it looks.  The second is a concentration on structure, where the author focuses on the content of the document, and then applies formatting based on what type of structure the content possesses.</span></p>
  29.    <p><span xml:lang="en-US" lang="en-US">In order to create a "Web-Clean" AbiWord document, you must engage in word processing while at the same time paying attention to the structure of the document which you are creating.  A typical document consists of a variety of structures, such a headers, lists, paragraphs, and so on.</span></p>
  30.    <p>To demonstrate what I'm talking about, let's look at the example of creating a header in a document.  Doing things the first way, concentrating on presentation, we would insert the cursor where we want the header, then select Bitstream Vera Serif for the font, 20 for the font size, and bold, for emphasis.  Doing things the second way, concentrating on structure, we would select the style which best represents the structure we want from the drop down menu at the left of the Formatting toolbar.  In this case, we would select "Heading 1", and then this section of the document would have the "Heading 1" style.</p>
  31.    <h2><a name="styles" id="styles"><span xml:lang="en-US" lang="en-US">Styles</span></a></h2>
  32.    <p><span xml:lang="en-US" lang="en-US">What we notice first, following the instructions above, is that when we apply the "Heading 1" style to our header, we do </span><span class="emphatic" style="">not</span><span xml:lang="en-US" lang="en-US"> have the formatting which we had when we manually formatted our header by the first method.  By default, the built in formatting for the "Header 1" style is Arial, bold, 17 point font.  This is just the default, however; styles give an author a great deal of control over the appearance of a document.</span></p>
  33.    <p><span xml:lang="en-US" lang="en-US">A style is simply a description of a structural element in your document, such as a header.  Each style has an associated set of formatting instructions which apply to every element with that style.  The author can then manipulate these formatting instructions to control the visual presentation of all elements with the given style.</span></p>
  34.    <h3><a name="important" id="important"><span xml:lang="en-US" lang="en-US">Why is this important?</span></a></h3>
  35.    <p><span xml:lang="en-US" lang="en-US">There are two main reasons why utilizing styles is important for the authoring of your documents.  The utilization of styles allows you to make changes to the presentation of the document very easily.  For instance, if you need to make all headers of a certain type bigger, you just adjust the formatting instructions for that header, and the change is applied throughout the document.  To do this, go to </span><span class="guidoc" style="">Format > Style...</span><span xml:lang="en-US" lang="en-US"> to bring up the </span><a href="../interface/dialogstyles.html"><span class="guidoc" style="">Styles</span></a><span xml:lang="en-US" lang="en-US"> menu.  Select the style you want to modify from the </span><span class="guidoc" style="">Available Styles</span><span xml:lang="en-US" lang="en-US"> list, and press </span><span class="guidoc" style="">Modify...</span><span xml:lang="en-US" lang="en-US"> to bring up the </span><span class="guidoc" style="">Modify Styles</span><span xml:lang="en-US" lang="en-US"> dialog.  From this window you can access the presentation information associated with the style that you chose.  As you can see, this technique is valuable for any type of document authoring.  This concept of styles is also utilized in the export to HTML, so that if you need to edit your HTML separately, you can change the presentation of one style by easily editing the formatting instructions, known as Cascading Style Sheets.</span></p>
  36.    <p><span xml:lang="en-US" lang="en-US">Additionally, using styles and formatting instructions gathers all presentation information into a centralized location, which greatly simplifies the content of your document.  This is particularly important when it comes to working with HTML, as you may need to work directly with the HTML markup at some point to integrate your document with your web-site.</span></p>
  37.    <h3><a name="css" id="css"><span xml:lang="en-US" lang="en-US">HTML Formatting Instructions - Cascading Style Sheets (CSS)</span></a></h3>
  38.    <p><span xml:lang="en-US" lang="en-US">By default, when you save your document as an HTML file, AbiWord places all formatting instructions into one block at the beginning.  These formatting instructions use the Cascading Style Sheet language, and are in the <style> tag in the <head> of your document.  From here it is easy to move the styles as a whole (copy and paste) into a new document which can then be externally linked or integrated with your web-site's style sheet.</span></p>
  39.    <h2><a name="paragraphs" id="paragraphs"><span xml:lang="en-US" lang="en-US">Paragraphs & Indentation</span></a></h2>
  40.    <p><span xml:lang="en-US" lang="en-US">Every time you press Enter or Return when you are editing an AbiWord document, you are creating a new content block in your document.  In order to create Web-Clean AbiWord documents, you should try to have only one content block for every section of content in your document.  </span><span xml:lang="en-US" lang="en-US">Examples of sections of content include paragraphs, headers, and items in a list.</span></p>
  41.    <p><span xml:lang="en-US" lang="en-US">For example many authors, when using a word processor, will manually insert whitespace between paragraphs by pressing Enter repeatedly.  The amount of whitespace between paragraphs, however, is a detail about visual presentation which should be left to the formatting instructions of the paragraphs, as discussed in the section about styles, </span><a href="#styles"><span xml:lang="en-US" lang="en-US">above</span></a><span xml:lang="en-US" lang="en-US">.</span></p>
  42.    <p><span xml:lang="en-US" lang="en-US">You can also control indentation within paragraphs with formatting instructions.  It is often tempting to control the specific indentation of sections of text with multiple spaces or tabs.  In order to create Web-Clean documents, however, you should set the desired margins or indents using </span><a href="#styles"><span xml:lang="en-US" lang="en-US">formatting instructions</span></a><span xml:lang="en-US" lang="en-US"> or the margin stops in the ruler:</span></p>
  43.    <p style="text-align:center"><img style="width:164.8mm" alt="" src="data:image/png;base64,
  44. iVBORw0KGgoAAAANSUhEUgAAAokAAAAXCAIAAADoRkJsAAAABGdBTUEAALGPC/xhBQAADthJ
  45. REFUeNrtXXtQVNcZv+fcs/exL16LLBjFJzEaBImxBCPWNGoSMQo2oGYybTKdmCYzNhAn06aP
  46. ybSjzqSZtFWraVrTTBKLbY2d1AoUiW/AVONEVhtZICOyMJEgy8Lefd299/SPS7e4e+8mDeyV
  47. vbnff8zHPXd/5zvn+33nO985F3Rf7yZuFYwxMZkEADCexzGBjazxwIED77//vtVqJTDB8zzn
  48. 48rLyx9//HGf3wcIQCSzYIwxgZMdhS63Z/AQGBBgnFNMF10m3u1D4ON8NdU1kIQQQFEUeZ4n
  49. Efnaa68ZTUYsYs33APJ6vRrnZowBAT766KMnv/vk6odW8yH+9OnTzg7nxxc/rqio4Ea4ZCe1
  50. yWYvXZLPD+rcrMskEwhhf3+/1+s9fPiw3+/vcfVcu3Zt12929ff3Z2ZmiqKo/R74OvgdlmUN
  51. BoPdbscY82E+JTVlypQpFE2RJIkJrAGA+kzWRR8/umhPLFYLwzIj3hFBEGyZNqPJ+PUZrkjz
  52. wRfHcVWVVT09Pe1X200mkyAKfp8/EAj09fWVlZXdNf8unuf1OaCLLrroMukEE+FwOBAIBINB
  53. ISwQX6cUIYolMwDApEqTjidQIkkyGAwKonDhwgWPx4MxJgABIUQIVT9f3dPTM//u+cmeE5b2
  54. m/VZrMtXnF8E0IsVdJmMbg1jCOHw8PC1a9cAADNmzIAQkiSJEBIEQTsTEABBEGJpCEUR882b
  55. NwcHByHUSK4bQvj5558bWSNrZHtcPSRJSlZPS09jWIahGavJGiADyR5a6qLLeMhZF10mm5CQ
  56. DKeEL168+PLLLwMASJIEALS3t3d3dw8NDWlpvxljnJOTw7JsFD2jKAIfHBx0Op0ITa5c93iW
  57. zhjjKVlTfvf67yqrKgcGBqTt54b6hozUjLKHyxgDQ5N0spt2DE1ruWA7kh7QKsbbBVDlPTyt
  58. jtKx6St9iI5f2Gz2jX1veL1et8d98eOL4XC4YkPFZ5991t/fr4I7VW1SCIKQlpZmNBoVuVki
  59. LSnfK60vNUDM0uMlJSVNx5oQQuUV5T6f7+Spk+fPnd/+i+0kSWohN4JHJwwAgGEYv9+vTaeA
  60. sclkQghJm0/aKwm5jQBVIxJMYAMykCQZCAQ0ZkGMMU3TDMNgjAEAHMeFhbDGGFrlIQoA+Oby
  61. b5KQ7Pu8D1GjeeyElgchhAwGg2TBYDCo2upctidRRMfz/KFDhxYsWKDm/qvBYEh0KRbGOBwO
  62. r1q9qvGfjSRJ2my28+fO7/jFDgCBCsRM03QoFEpslwKCwP+14HuHqiqrwuGwahZUA+B/ncK+
  63. 1/e1OdoqyitWPriS4zh1nLvmATIMowLA0XfRTGdnZ2dX50OrHwoGg1oaogzNHD9x/GjDUQNp
  64. CPGhZ55+Zvbs2erMRNWGqNls3rtv7yXHpYp1FatWrvL5fYmGFokA+DAf5sMJnREIocuOyw6H
  65. w2AwYAIvX77cZrOpQ88URcVCgxHdju073vrjWwaDQel5KeP//6okrVJfHPrrIb/fH6dZxTYR
  66. GScGiX0wFAo9uPLBs2fPnv/X+Z+//HNIwqhOlxIGccymtAcfR0VR1I9+/KOhoSHZfzAYDErA
  67. AQBKhlBS0TT9w5d+uGffHoqiZB9MEMCXfvKSCgCNRuObf3wzEAysX7++rr6uuaWZpmntAQwG
  68. g5s2bqqrrzt95rRqAFUbotKJ1c1PbD5+4ngsumQHSDP00fqjZrP5kUceWbFihcVqiXXrSQ3Q
  69. ZDLt3bfXy3k3VW06deZU64etsa4mQQB37tg57BmW/Yc4RBBfG6vCGKdnpN95553z5s3r6+27
  70. 8dmNWB6RJZdxUqTBYNi5c6fH44kCOPpHOBz+zne/k5GRoRQmSPNKNpaPo5LAuFwu2RUqAKDH
  71. 1RMOy0dDgiC4XC5F1XWX0us4L9d/oz/WkKIo3rvk3ocfejjFmhIVz0pFcF1dXbL9TpJkV1fX
  72. zcGbsW3GUUnNtjnaQnxIttMcDkcoJKMCAIRCIYfDEdtmHBXP888+8+yUzCmyFhwF+KkywE+V
  73. AX76VQFejgvwsjLAGFUgEFhbtnbL01vWla9DCLlcriggGgD46NpHn3ryKUAAmqJjHdztAThx
  74. QxRjbLFYnq95ftPGTVLaUB5gMs/B0ZkY4osWFd0x9Y4op5fsABFC7c72hfkLAQBVj1UVFhaG
  75. QqFEA8QYsyx76dIl2awAAMB13aWU/oxDE7IqQRDsdvt9JffRDG3PthcUFkTldOOQyygP3ujn
  76. vAoUqaCStFc/uRqbP4aRLrBarXHKs2ma/qDpgw5nR6zXiKOSLHqw9iDHcbKNIxIp/VyO4w7W
  77. HpR1UhzH1dbWyr/OgJwdzqampqjAHEIYCoVOnTx1+G+HnU4nwzBREM62nN31210mkym2TZPJ
  78. tGvPrrPNZ2OD/Tiq0aDPQAECxJZSUxRVva3a7XbHdguE0O12V2+rlg1LlVQY45TUFCUL0jTd
  79. 3NK8+7e7lQDu3rNbdjEaR/WFAGu21biHFAHWbKtRAhirwhinpKQQmNhWsw1jvGjRoqihrAGA
  80. VqsVY9zQ2ABIkDUlK8rj3BaAEzhEGYb5+5G/L75n8dw5cyGEJCSjvG2yz8FAIFC2pozjuMam
  81. xl27dzmdzqilZ7IDxBgbjcY9e/fU1de9+6d3XT2uKA+cCIBms/nIP44U31fcdqktdimPEKqt
  82. rZUllzg0EUeFMR4eH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kLc+bMGdtCalqqUq43Dk0oqRBC+/+wv2pjlWKK4lZy
  97. mSiKHBkZKS0tpelbKB9c+feVyLr51KlTCxYs+OSTT1Q73/xl6rTHU5sn7Z2cOXNmy9Nb5i+Y
  98. 7/F4AAAURXVf7z7w9oGaH9Tk5uYmtJZStRJKKbqqa6iTXTcnO0Capj84/kFDYwMiUSgU2vL0
  99. ltmztFYEO1qnfbmtorxi5bc0WKctTb2rV69293SvXrlaY3XakgX3vr63zdG2oXyDJo8SROq0
  100. Ew2Qpuim400t51q2Pr91aGgokvrev39/Z0dn6fLSBB2xgRB+eO7DwkWFsimKBIkgCCUlJRaL
  101. JQrUKDdLM8dkMjkcjs7OTs2cb4YQDgwMNJ9tbmhoaO9oR+RozJGWlvbiiy+uWLaiorwiEEj6
  102. e8E0f7459vColi7tG+vcb8/5ZqCfb05uC2oMoNVq/f6z36/cVHl3/t0cx0WcOcdxVVVVW7du
  103. TVxcTlEUz/NqHiQWBGHx4sXp6elRy3E0tt/9fr8oimquuhLtO0RRhBD29va+8fs3xubQWJbt
  104. 6upas2oNBBCC5L6gdOwtS4FAINnhKIwAguf5SIoFEECDMAERiatISCbF/PpqnkgQBJUBat6C
  105. WgKICQwBpCjq4MGDxd3FEb8NIfR4PAF/QCKpBA1an8+nclAle5k2EXVnJ8Y4PT09Ly9PS/dp
  106. ezyeYDDYfa07EpVIGzB9vX0BPuDxegLBQEJ/QMJPr+NoJ6tm0KcGQEIHmGCAWFWAgABqvlF9
  107. C+oAxylBPrh02dL6hvqW5pYIU2KMRVHcvHnzzJkztZQ2k86JfcG3LkRRzMjIsNlsWvoO1Y0b
  108. N+bdNW/79u0DNwciMQdrZAfdg4NDg8PccOL2vQAAnZ2d03OnGwyGxH2RIvIdKgjhkHvIy3mn
  109. TZumztiFAHZ2deZOz0UGpMKY0QEmAmBXV1eih+hYgG632+v1Tps+TRREdbyHCnNQBzixMuwd
  110. Xrxk8f2l98uWQ6tWqaAawX3xd6gk5JPtm4nj/NCFIAiiIHq93t7e3sg+usViCYVCEEAAQOIy
  111. GNIHzghMQAAT9xnHSB0mBJDneR/nIyGJRTWMCCEc9gxjjBMKcCyR6ACTcYiOHas8z3McpwPU
  112. AX7hWxJ9nfMkF6R5hNKt5XyYNxqN0roZY8wwDEmSKlQ2Tp06VYUXRV5nNpsRQqoluHSAGgCY
  113. k5OjJkCTyUSSpIYtqAPUZWKYK1KnPbb3NbNuloLKqqqqaXdMG9sOSZIdHR07duwoWVqS0AyJ
  114. CltBUVdYAADUnDa3Ya9LBzihorKf1S2oA9TlS/Wzs8OpYW6WxDviDYaCY7/XhgmMSGSxWjRQ
  115. 9TbZ7KVL8nkBAPRO0EWXSSX/AZxf+56GQGOxAAAAAElFTkSuQmCC" /></p>
  116.    <p style="text-align:left">Using this method enables the HTML to use the appropriate formatting instructions to properly indent the text, and saves you, the author, from having to repeatedly indent text manually.</p>
  117.    <h2><span xml:lang="en-US" lang="en-US">Images</span></h2>
  118.    <p><span xml:lang="en-US" lang="en-US">As an author using AbiWord and interested in presenting your content as a web-page, there is one issue you should be aware of with respect to using images in your document.  First, unlike AbiWord files, HTML files cannot store image information within the file itself.  Rather, they must refer to separate image files.  When you save an AbiWord file as an HTML file, then, all images are saved into a directory and referred to from there.  If the name of the HTML file to which you are saving is </span><span class="command" style="" xml:lang="en-US" lang="en-US">filename.html</span><span xml:lang="en-US" lang="en-US">, then this directory will be called </span><span class="command" style="" xml:lang="en-US" lang="en-US">filename.html_d</span><span xml:lang="en-US" lang="en-US">.  You will find all the images from your document in this directory.</span></p>
  119.   </div>
  120.  
  121. <div class="index">
  122. <a href="../index.html" class="bars">Top Page</a>
  123. <a href="../tutorial/index.html" class="bars">Tutorial</a>
  124. <a href="../howto/index.html" class="bars">How To</a>
  125. <a href="../info/index.html" class="bars">Information</a>
  126. <a href="../interface/index.html" class="bars">Interface</a>
  127. <a href="../plugins/index.html" class="bars">Plug-ins</a> 
  128. <a href="../problems/index.html" class="bars">Problems</a>
  129. <a href="../credits.html" class="bars">Credits</a>
  130. <a href="../azindex.html" class="bars">Index</a>
  131. <a href="../fdl.html" class="bars">GNU FDL</a> 
  132. </div>
  133.  
  134. </body>
  135. </html>
  136.  
  137.